<script setup lang="ts">
import { ref } from 'vue'
import navBar from '@/components/navBar.vue'

</script>

<template>
    <view class="page">
        <view class="nav-bg">
            <navBar message="个人资料" />
            <view class="avatar">
                <image style="width: 160rpx;height: 160rpx;" src=""/>
                <text>修改头像</text>
            </view>
            <view class="nickname">
                <text>昵称</text>
                <input
                placeholder="请输入昵称"
                style="text-align: right;"
                type="text">
            </view>
        </view>
        <button class="save">保存</button>
    </view>
</template>

<style lang="scss" scoped>
    .page{
        .nav-bg{
            width: 100%;
            height: 634rpx;
            background: linear-gradient(180deg,rgb(255,245,156) 0%,rgb(255,255,255) 100%);
            .avatar{
                width: 160rpx;
                height: 222rpx;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: center;
                margin:  96rpx auto;
            }
            .nickname{
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 30rpx;
                color: rgb(48,49,51);
                padding: 0 32rpx;
                box-sizing: border-box;
            }
        }
        .save{
            width: 420rpx;
            height: 80rpx;
            background-color: rgb(255,205,39);
            text-align: center;
            line-height: 80rpx;
            margin: 138rpx auto 0;
            font-size: 32rpx;
            color: rgb(48,49,51);
            border-radius: 412rpx;
        }
    }
</style>